<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?php echo ADMIN_LAYUI_URL; ?>css/layui.css" media="all">
</head>
<body>
<div style="margin: 10px">
    <form class="layui-form" action="" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">空间选择</label>
            <div class="layui-input-inline">
                <select name="co_space" lay-filter="aihao">
                    <option value="" selected="">请选择空间</option>
                    <?php if(is_array($space)): $k = 0; $__LIST__ = $space;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><option value="<?php echo ($v["co_space"]); ?>"><?php echo ($v["co_space"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">存储名称</label>

            <div class="layui-input-inline">
                <input type="text" name="co_name" lay-verify="required" placeholder="请输入xxx.php" autocomplete="off" class="layui-input" value="">
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <div class="site-demo-button" id="LAY_demo"  style="margin-bottom: 0;">
                    <button data-method="notice" class="layui-btn">创建文件</button>
                    <div style="color:red"><?php echo ($error); ?></div>
                </div>
            </div>
        </div>


    </form>
</div>
<script src="<?php echo ADMIN_LAYUI_URL; ?>layui.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){

    });
</script>

</body>
</html>